package com.ygqh.baby.mapper;

import com.ygqh.baby.ao.QueryInfo;
import com.ygqh.baby.po.WdtQybOrder;
import com.ygqh.baby.po.WdtQybOrderExample;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface WdtQybOrderMapper {
	int countByExample(WdtQybOrderExample example);

	int deleteByExample(WdtQybOrderExample example);

	int deleteByPrimaryKey(Long id);

	int insert(WdtQybOrder record);

	int insertSelective(WdtQybOrder record);

	List<WdtQybOrder> selectByExample(WdtQybOrderExample example);

	WdtQybOrder selectByPrimaryKey(Long id);

	int updateByExampleSelective(@Param("record") WdtQybOrder record, @Param("example") WdtQybOrderExample example);

	int updateByExample(@Param("record") WdtQybOrder record, @Param("example") WdtQybOrderExample example);

	int updateByPrimaryKeySelective(WdtQybOrder record);

	int updateByPrimaryKey(WdtQybOrder record);

	int countSuper(@Param("q") String q);

	List<WdtQybOrder> selectSuper(@Param("queryInfo") QueryInfo queryInfo, @Param("q") String q);

	int insertBatch(@Param("tradeList") List<WdtQybOrder> tradeList);

	WdtQybOrder selectByTradeId(@Param("tradeId") Long tradeId);

	String getShopName(@Param("shopNo") String shopNo);

	List<Map<String, Object>> selectSalesReportBySku(@Param("startTime") Date startTime, @Param("endTime") Date endTime);
}
